# $Id: PKGBUILD 81018 2012-12-10 10:17:16Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Firmicus <francois.archlinux.org>

pkgname=perl-tidy
pkgver=20121207
pkgrel=1
pkgdesc="Parses and beautifies perl source"
arch=('any')
url="http://search.cpan.org/dist/Perl-Tidy"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-$pkgver.tar.gz)
md5sums=('2fd84e72296337c78f2c024af3005aa8')

build() {
  cd  $srcdir/Perl-Tidy-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Perl-Tidy-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
